package com.aokser.treeboot.entity;

import java.util.List;

/**
 * Created by lenovo on 2016/12/16.
 */
public class TreeNode {

    private String id;

    private String name;

    private boolean isParent;

    private boolean allowEdit;

    private String icon;

    private List<TreeNode> children;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isParent() {
        return isParent;
    }

    public void setParent(boolean parent) {
        isParent = parent;
    }

    public boolean isAllowEdit() {
        return allowEdit;
    }

    public void setAllowEdit(boolean allowEdit) {
        this.allowEdit = allowEdit;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public List<TreeNode> getChildren() {
        return children;
    }

    public void setChildren(List<TreeNode> children) {
        this.children = children;
    }

    public TreeNode() {
    }

    public TreeNode(String id, String name, boolean isParent, boolean allowEdit, String icon, List<TreeNode> children) {
        this.id = id;
        this.name = name;
        this.isParent = isParent;
        this.allowEdit = allowEdit;
        this.icon = icon;
        this.children = children;
    }
}
